home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 1
/
LSD Compendium Deluxe 1.iso
/
a
/
programming
/
assemblers
/
cas.lha
/
orig
/
nl.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-08-11
|
283 b
|
9 lines
#include <stdio.h>
main(int AC, char **AV) {
FILE *FP; int Ch;
if (AC < 2) fprintf(stderr, "Usage: %s Input\n", AV[0]), exit(1);
FP = fopen(AV[1], "rb");
if (FP == 0) fprintf(stderr, "Cannot open %s.\n", AV[1]), exit(1);
while ((Ch = fgetc(FP)) != EOF) putchar(Ch);
}